package com.rongzhe.house.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.rongzhe.house.R;
import com.rongzhe.house.manager.ConfigManager;

/**
 * Created by huang on 2018/3/13.
 */

public class ContractActivity extends H5BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        findViewById(R.id.btn_ok).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ContractActivity.this, PayTypeActivity.class);
                launchActivity(true, intent);
            }
        });
    }

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_contract;
    }

    @Override
    public String getUrl() {
        return ConfigManager.getInstance().getContractUrl();
    }

    @Override
    protected boolean showActionBar() {
        return true;
    }

    @Override
    protected String getActionTitle() {
        return getString(R.string.contract_title);
    }
}
